package mtt.us.client;

import mtt.us.client.il8n.MTTUSConstants;
import hmvc4gwt.client.triad.Triad;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.HistoryListener;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class MTTUS implements EntryPoint, HistoryListener {
	
	public static final MTTUSConstants constants = (MTTUSConstants) GWT.create(MTTUSConstants.class);

	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		
		/*
		 * Application starten
		 */
		new Triad(new AppController());
	}
	
	public void onHistoryChanged(String historyToken) {
//		AppController controller = AppController.getInstance();
//		
//		if (historyToken.equals(HistoryLinks.stundenpläne)) {
//			controller.showViewStundenpläne();
//		} else if (historyToken.equals(HistoryLinks.fachbereiche)) {
//			controller.showViewFachbereiche();
//		} else if (historyToken.equals(HistoryLinks.logout)) {
//			controller.showViewLogout();
//		}
		
	}
}
